<div class="navbar navbar-default navbar-static-top" role="navigation">
    <div class="container">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="{{ path('BudgetBudgetBundle_home') }}">Moja-Kasa</a>
      </div>
      <div class="navbar-collapse collapse">
        <ul class="nav navbar-nav">
          {% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
            {#
              <li class="dropdown">
                  <a href="#" class="dropdown-toggle" data-toggle="dropdown">Wydatki <span class="caret"></span></a>
                  <ul class="dropdown-menu" role="menu">
                    <li><a href="{{ path('BudgetBudgetBundle_expenses_new') }}">Lista</a></li>
                    <li><a href="{{ path('BudgetBudgetBundle_charts') }}">Wykresy</a></li>
                  </ul>
              </li>
              #}
              <li><a href="{{ path('BudgetBudgetBundle_expenses_new') }}">Wydatki</a></li>
              <li><a href="{{ path('BudgetBudgetBundle_incomes') }}">Przychody</a></li>
              <li><a href="{{ path('BudgetBudgetBundle_family_statistics') }}">Statystyki</a></li>
              <li class="dropdown">
                  <a href="#" class="dropdown-toggle" data-toggle="dropdown">Categories <span class="caret"></span></a>
                  <ul class="dropdown-menu" role="menu">
                    <li><a href="{{ path('BudgetBudgetBundle_categories_new') }}">Add Category</a></li>
                    <li><a href="{{ path('BudgetBudgetBundle_categories') }}">List Categories</a></li>
                  </ul>
               </li>
              <li class="dropdown">
                  <a href="#" class="dropdown-toggle" data-toggle="dropdown">My profile <span class="caret"></span></a>
                  <ul class="dropdown-menu" role="menu">
                    <li><a href="{{ path('FOSUserBundle_profile') }}">Show profile</a></li>
                    <li><a href="{{ path('FOSUserBundle_profile_edit') }}">Change data</a></li>
                    <li><a href="{{ path('FOSUserBundle_profile_pass') }}">Change password</a></li>
                  </ul>
               </li>
              <li><a href="{{ path('fos_user_security_logout') }}">Logout</a></li>
          {% else %}
              <li><a href="{{ path('FOSUserBundle_login') }}">Login</a></li>
              {#
              <li><a href="{{ path('FOSUserBundle_register') }}">Register</a></li>
              #}
          {% endif %}        
        </ul>
      </div><!--/.nav-collapse -->
    </div>
  </div>
